package com.xin.ssm.controller;

import com.xin.ssm.bean.User;
import com.xin.ssm.service.UserServie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserController {

    @Autowired
    UserServie userServie;

    @RequestMapping("index")
    public String index(){
        User user = userServie.queryById(1);
        System.out.println(user);
        return "index";
    }
}

